package cn.yanghx.pay.feign;

import cn.yanghx.pay.vo.feign.wechat.app.prepay.WechatAppPrepayParams;
import cn.yanghx.pay.vo.feign.wechat.app.prepay.WechatAppPrepayResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author: yanghx
 * @created: 2021/06/16 15:11
 */
@FeignClient(url = "https://api.mch.weixin.qq.com", name = "wechatMiniProgramPayFeign")
public interface WechatMiniProgramPayFeign {


    /**
     * 发起预支付
     *
     * @param params 预支付参数
     * @return 预支付返回信息
     */
    @PostMapping("/v3/pay/transactions/app")
    WechatAppPrepayResult prepay(WechatAppPrepayParams params);

}
